<style>
.search_form .layui-inline{padding-left:0px;}
.layui-form-label{line-height:25px;}
.search_form .layui-form-label{padding:5px 5px 0 5px;}
</style>
<div class="search-box">
	<form class="search_form layui-form" lay-filter="goods_search_form">
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">分类</label>
			<div class="layui-input-inline">
				<select name="category_sign1" id="category_search1" lay-filter="list_category_search1" lay-search>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="category_sign2" id="category_search2" lay-filter="list_category_search2" lay-search>
				</select>
			</div>
			<div class="layui-input-inline">
				<select name="category_sign3" id="category_search3" lay-filter="list_category_search3" lay-search>
				</select>
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">品牌</label>
			<div class="layui-input-inline">
				<input style="width: 0px;height: 0px;border: 0px;" type="text" name="brand_sign" id="brand_sign" autocomplete="off" class="layui-input">
				<div class="layui-form-select">
					<div class="layui-select-title">
						<input id="goods_brand_div_zixuan" type="text" placeholder="请选择" value="" class="layui-input">
						<i class="layui-edge"></i>
					</div>
					<dl class="layui-anim layui-anim-upbit" id="select_brand_zixuan" style="">
						<dd lay-value="" class="layui-select-tips layui-this">请选择</dd>
					</dl>
				</div>
				<!-- <select name="brand_sign" id="brand_sign" lay-filter="list_brand_sign" lay-search>
				</select> -->
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">名称</label>
			<div class="layui-input-inline">
				<input type="text" name="goods_name" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">编号</label>
			<div class="layui-input-inline">
				<input type="text" name="goods_sku" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">型号</label>
			<div class="layui-input-inline">
				<input type="text" name="goods_model" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label layui-bg-blue">发布时间</label>
			<div class="layui-input-inline">
				<input type="text" name="goods_form_create_time_start" autocomplete="off" class="layui-input" placeholder="开始日期">
			</div>
			<div class="layui-input-inline">
				<input type="text" name="goods_form_create_time_end" autocomplete="off" class="layui-input" placeholder="结束日期">
			</div>
		</div>
		
		<div class="layui-inline search-radio-box">
		    <label class="layui-form-label layui-bg-blue">产品审核</label>
			<div class="layui-input-inline">
				<input type="radio" name="audit_state" value="" title="全部" checked>
				<input type="radio" name="audit_state" value="1" title="通过">
				<input type="radio" name="audit_state" value="2" title="等待审核">
				<input type="radio" name="audit_state" value="-1" title="失败">
			</div>
		</div>
		<div class="layui-inline search-radio-box">
		    <label class="layui-form-label layui-bg-blue">军采审核</label>
			<div class="layui-input-inline">
			    <input type="radio" name="jun_state" value="" title="全部" checked>
				<input type="radio" name="jun_state" value="1" title="通过">
				<input type="radio" name="jun_state" value="2" title="驳回">
				<input type="radio" name="jun_state" value="3" title="审核中">
				<input type="radio" name="jun_state" value="4" title="已推送">
				<input type="radio" name="jun_state" value="5" title="未推送">
			</div>
		</div>
		<div class="layui-inline search-radio-box">
			<div class="layui-input-inline">
				<input type="radio" name="sale_state" value="" title="全部" checked>
				<input type="radio" name="sale_state" value="1" title="在售">
				<input type="radio" name="sale_state" value="2" title="下架">
			</div>
		</div>
		<div class="layui-inline">
			<div class="layui-input-inline">
				<button type="button" id="goods_search_btn"
					class="layui-btn layui-btn-normal layui-btn-sm layui-bg-red">搜 索</button>
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<div id="transfer_select_category" style="display: none; padding-top: 20px;">
			<form class="layui-form" lay-filter="goods_transfer_form">
				<label class="layui-form-label" style="width: auto;">分类</label>
				<div class="layui-input-inline">
					<select name="transfer_category_sign1" id="category_transfer1" lay-filter="list_category_transfer1" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="transfer_category_sign2" id="category_transfer2" lay-filter="list_category_transfer2" lay-search>
					</select>
				</div>
				<div class="layui-input-inline">
					<select name="transfer_category_sign3" id="category_transfer3" lay-filter="list_category_transfer3" lay-search>
					</select>
				</div>
				<div class="wanning" style="color: #ff6600; padding-left: 20px; ">
					*转移注意事项：<br />
					1、确保转移前和转移后分类下的品牌一致；<br />
					2、确保转移前和转移后分类的折扣率一致；<br />
					3、确保转移前和转移后分类的商品属性一致；<br />
					4、如果不能保证上面信息的一致性，请转移商品后手动修改商品信息，确保商品信息正确性。
				</div>
			</form>
		</div>
	<div style="padding: 30px; display: none;" id="baojia_box">
		<div class="layui-form-item">
			<label class="layui-form-label">报价金额</label>
			<div class="layui-input-inline">
				<input type="text" name="baojia" id="baojia" autocomplete="off" class="layui-input" placeholder="报价金额">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">库存</label>
			<div class="layui-input-inline">
				<input type="text" name="kucun" id="kucun" autocomplete="off" value="4" class="layui-input" placeholder="4">
			</div>
		</div>
	</div>
<table class="layui-hide" id="goods_list" lay-filter="goods_list"></table>
<script>
	
	var goods_list_url = "{:url('Goods/ajaxList',array('pre_info'=>'utec'))}",
		goods_delete_url = "{:url('Goods/ajaxDelete')}",
		goods_up_url = "{:url('Goods/ajaxUp')}",
		goods_down_url = "{:url('Goods/ajaxDown')}",
		goods_one_url = "{:url('Goods/ajaxOneData')}",
		goods_save_url = "{:url('Goods/saveData')}",
		goods_copy_url = "{:url('Goods/copy')}",
		goods_collect_url = "{:url('Goods/collect')}",
		category_select_uri = "{:url('Category/ajaxCategory')}",
		brand_select_uri = "{:url('Brand/ajaxList')}",
		goods_cols = {$cols},
		goods_upload_url = "{:url('goods/upload')}",
		goods_transfer_url = "{:url('goods/transfer')}",
		site_data_url = "{:url('goods/siteData')}",
		goods_export_url = "{:url('goods/exportGoods')}",
		goods_export_cg_url = "{:url('goods/exportCgGoods')}",
		goods_delete_url = "{:url('goods/ajaxDelete')}",
		audit_log_url = "{:url('audit/auditLog')}",
		baojia_url = "{:url('goods/saveBaojia')}",
		goods_detail_url = "{:url('goods/detail')}";

	$.getScript('/static/js/goods/goods.js');
</script>
<script type="text/html" id="goodsToolbar">
	<div class="layui-btn-container">
	<a type="button" data-title="创建报价单" class="layui-btn layui-btn-normal layui-btn-sm" lay-event="createExportCgGoods" style="display:none;"><i class="layui-icon layui-icon-spread-left"></i>创建报价单</a>
	</div>
</script>
<script type="text/html" id="goods_tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="view_goods" data-id="view_goods_{{ d.goods_sku}}" data-title="查看商品"><i class="layui-icon layui-icon-read"></i></a>
		{{# if(d.jun_state == 1){}}
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="baojia_goods" data-id="baojia_goods_{{ d.goods_sku}}" data-title="商品报价"><i class="layui-icon layui-icon-flag"></i></a>
		{{# }}}
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>
<script type="text/html" id="goods_picturesTpl">
	{{# if(d.goods_picture){ return '<a data-title="<img src='+d.goods_picture.save_path+' width=182 />" class="layui-btn layui-btn-sm" style="background-color:#fff;"><img src="'+d.goods_picture.save_path+'" /></a>'; } }}
</script>
<script type="text/html" id="is_realTpl">
	{{# if(d.is_real == 1 || d.is_real == true){ }}
	<input type="checkbox" name="is_real" lay-skin="switch" checked lay-text="是|否" disabled=""> {{# } else { }}
	<input type="checkbox" name="is_real" lay-skin="switch" lay-text="是|否" disabled=""> {{# } }}
</script>
<script type="text/html" id="is_shoppingTpl">
	{{# if(d.is_shopping == 1 || d.is_shopping == true){ }}
	<input type="checkbox" name="is_shopping" lay-skin="switch" checked lay-text="是|否" disabled=""> {{# } else { }}
	<input type="checkbox" name="is_shopping" lay-skin="switch" lay-text="是|否" disabled=""> {{# } }}
</script>
<script type="text/html" id="is_installTpl">
	{{# if(d.is_install == 1 || d.is_install == true){}}
	<div class="layui-anim circle layui-bg-blue" data-title="需要">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="不需要">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="sale_stateTpl">
	{{# if(d.sale_state == 1 || d.sale_state == true){}}
	<div class="layui-anim circle layui-bg-green" data-title="在售">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-red" data-title="下架">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="audit_stateTpl">
	{{# if(d.audit_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="通过">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.audit_state == -1){ }}
	<div class="layui-anim circle layui-bg-red" data-title="驳回：{{d.audit_remark?d.audit_remark:'无'}}">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-black" data-title="等待审核">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
<script type="text/html" id="jun_stateTpl">
	{{# if(d.jun_state == 1){}}
	<div class="layui-anim circle layui-bg-green" data-title="通过">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.jun_state == 2){ }}
	<div class="layui-anim circle layui-bg-red" data-title="驳回">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.jun_state == 3){ }}
	<div class="layui-anim circle layui-bg-orange" data-title="审核中">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.jun_state == 4){ }}
	<div class="layui-anim circle layui-bg-blue" data-title="已推送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else if(d.jun_state == 5){ }}
	<div class="layui-anim circle layui-bg-zi" data-title="敏感词复核">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# } else {}}
	<div class="layui-anim circle layui-bg-black" data-title="未推送">
		<i class="layui-icon layui-icon-radio"></i>
	</div>
	{{# }}}
</script>
